//
//  SwipeableCell.h
//  SwipeableCell
//
//  Created by Noah on 2016/12/8.
//  Copyright © 2016年 Noah. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SwipeableCellDelegate <NSObject>

@required
- (void)buttonOneActionForItemText:(NSString *)itemText;
- (void)buttonTwoActionForItemText:(NSString *)itemText;

@optional
- (void)cellDidOpen:(UITableViewCell *)cell;
- (void)cellDidClose:(UITableViewCell *)cell;

@end

@interface SwipeableCell : UITableViewCell

@property (nonatomic, weak) id <SwipeableCellDelegate> delegate;
@property (nonatomic, strong) NSString *itemText;

+ (void)closeCell:(BOOL)animated;

@end
